# Contributor: Feng Shu <tumashu@163.com>

_realname=rime-cangjie
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.0.0.20210223
_commit=8dfad9e537f18821b71ba28773315d9c670ae245
pkgrel=1
pkgdesc="Cangjie input for rime"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
url="https://github.com/rime/rime-cangjie"
license=('LGPL')
# dependency for reverse lookup
depends=("${MINGW_PACKAGE_PREFIX}-rime-luna-pinyin")
source=("https://github.com/rime/rime-cangjie/archive/${_commit}/rime-cangjie-${_commit}.tar.gz")
sha512sums=('48e505227b13c03610fc5d0e25125b5b5aff73fa051bab2a8a408d08391f8416f3010154355d0a80cdc841825d362352bb85efd8fd4d038680c4c835b060ca0a')

package() {
  cd "rime-cangjie-${_commit}"
  install -Dm644 *.yaml -t "${pkgdir}${MINGW_PREFIX}/share/rime-data/"
}
